#ifndef ATTENDANCERULES_H
#define ATTENDANCERULES_H

#include "baseservice.h"

class AttendanceRulesService : public BaseService
{
public:
    // 插入默认规则，若有则返回false
    bool insertDefaultRule();

    QJsonArray getRulesByName(const QString& ruleName);

    // 修改规则
    bool updateRulesByRuleName(
            const QString& rule_name,
            const QTime& work_start,
            const QTime& work_end,
            const QTime& split_time,
            const QTime& checkin_start,
            const QTime& checkout_end);
};

#endif // ATTENDANCERULES_H
